import request from '@/utils/request';

// 刷新token
export function refreshToken() {
  return request({
    url: '/api/auth/v1/refreshToken',
    method: 'get',
  });
}

export async function getToken() {
  const res = await request({
    url: '/api/user/v1/getToken',
  });
  return res.data;
}
